﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RevenueMachineAccountInfo.ascx.cs"
    Inherits="NetDon.OA.Portal.Finance.RevenueMachineAccountInfo" %>
<%@ Import Namespace="NetDon.Utilities" %>
<NetDon:FormPanel ID="FormPanelStore1" runat="server" CaptionAlign="NotSet" RepeatColumns="2"
    SkinID="ProductView">
    <Items>
        <NetDon:FormItem FullRow="True" HeaderVisible="False" ContentStyle-Font-Bold="true">
            <ContentTemplate>
                <asp:Literal ID="Literal1" runat="server" Text="营收台账"></asp:Literal>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="订单编号">
            <ContentTemplate>
                <asp:Label runat="server" ID="txtOrderCode" Text='<%#Bind("OrderCode") %>'>	</asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="出单日期">
            <ContentTemplate>
                <asp:Label ID="txtReceivingOrderDate" runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="发货日期">
            <ContentTemplate>
                <asp:Label ID="txtAcutalShippingDate" runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="运输计划号">
            <ContentTemplate>
                <asp:Label ID="lblTransporationPlanCode" runat="server" Text='<%#Bind("TransportationPlanCode") %>'></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="交货单信息" ColumnSpan="2" FullRow="True">
            <ContentTemplate>
                <NetDon:GridView ID="GridViewOrderDelivery" runat="server" AutoGenerateColumns="False"
                    DataKeyNames="Id" CssClass="IncrementalTable">
                    <Columns>
                        <NetDon:IndexField HeaderText="序号">
                        </NetDon:IndexField>
                        <NetDon:BoundField Visible="False" DataField="DeliveryCity">
                        </NetDon:BoundField>
                        <NetDon:TemplateField HeaderText="交货单号">
                            <ItemTemplate>
                                <asp:Label ID="Label12" Text='<%#Eval("DeliveryOrderCode") %>' runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="送货城市">
                            <ItemTemplate>
                                <asp:Label ID="Label13" Text='<%#Eval("DeliveryCityName") %>' runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="送货地址">
                            <ItemTemplate>
                                <asp:Label ID="Label14" Text='<%#Eval("DeliveryAddress") %>' runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="下单数量">
                            <ItemTemplate>
                                <asp:Label ID="LabelOrderQuantity" Text='<%#Convert.ToDecimal(Eval("OrderQuantity")).ToString("#,###.00")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="实际<Br/>下单数量">
                            <ItemTemplate>
                                <asp:Label ID="LabelActualEntruckingOrderQuantity" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingOrderQuantity")).ToString("#,###.00")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="下单材积<Br/>（方）">
                            <ItemTemplate>
                                <asp:Label ID="LabelOrderVolumn" Text='<%#Convert.ToDecimal(Eval("OrderVolumn")).ToString("#,###.000")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="实际<Br/>下单材积<Br/>（方）">
                            <ItemTemplate>
                                <asp:Label ID="LabelActualEntruckingOrderVolumn" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingOrderVolumn")).ToString("#,###.000")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="下单重量<Br/>（吨）">
                            <ItemTemplate>
                                <asp:Label ID="LabelOrderWeight" Text='<%#Convert.ToDecimal(Eval("OrderWeight")).ToString("#,###.000")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="实际下<Br/>单重量<Br/>（吨）">
                            <ItemTemplate>
                                <asp:Label ID="LabelActualEntruckingOrderWeight" Text='<%#Convert.ToDecimal(Eval("ActualEntruckingOrderWeight")).ToString("#,###.000")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="成本单价">
                            <ItemTemplate>
                                <asp:Label ID="LabelUnitCost" Text='<%#Convert.ToDecimal(Eval("UnitCost")).ToString("#,###.0000")%>'
                                    runat="server"></asp:Label>
                                <br />
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="营收单价">
                            <ItemTemplate>
                                <asp:Label ID="txtRevenueUnitCost" Text='<%#Convert.ToDecimal(Eval("RevenueUnitCost")).ToString("#,###.00")%>'
                                    runat="server"></asp:Label>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                        <NetDon:TemplateField HeaderText="装卸费率">
                            <ItemTemplate>
                                <asp:Label ID="txtGoodsUnloadingPriceRatio" Text='<%#Convert.ToDecimal(Eval("GoodsUnloadingPriceRatio")).ToString("#,###.00")%>'
                                    runat="server"></asp:Label>
                            </ItemTemplate>
                        </NetDon:TemplateField>
                    </Columns>
                </NetDon:GridView>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="箱数">
            <ContentTemplate>
                <asp:Label ID="txtActualEntruckingBoxAmount" runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="成本单价">
            <ContentTemplate>
                <asp:Label ID="txtUnitCost" runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="下单材积（方）">
            <ContentTemplate>
                <asp:Label ID="txtOrdeVolumn" runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="实际下单材积（方）">
            <ContentTemplate>
                <asp:Label ID="txtActualOrdeVolumn" runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="下单重量（吨）">
            <ContentTemplate>
                <asp:Label ID="txtOrderWeight" runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="实际下单重量（吨）">
            <ContentTemplate>
                <asp:Label ID="txtActualOrderWeight" runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="下单数量">
            <ContentTemplate>
                <asp:Label ID="txtOrderQuantity" runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="实际下单数量">
            <ContentTemplate>
                <asp:Label ID="txtActualOrderQuantity" runat="server" SkinID="Text80" Style="text-align: right"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="拼车费">
            <ContentTemplate>
                <asp:Label ID="txtCarSharingPrice" Text='<%#Convert.ToDecimal(Eval("TotalCarSharingPrice")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="与工厂结的拼车费">
            <ContentTemplate>
                <asp:Label ID="txtCarSharingCostWithFactory" Text='<%#Convert.ToDecimal(Eval("CarSharingCostWithFactory")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="装卸费">
            <ContentTemplate>
                <asp:Label ID="txtGoodsUnloadingCost" Text='<%#Convert.ToDecimal(Eval("TotalGoodsUnloadingCost")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="与工厂结的装卸费">
            <ContentTemplate>
                <asp:Label ID="txtUnloadingCostWithFactory" Text='<%#Convert.ToDecimal(Eval("UnloadingCostWithFactory")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="与工厂结的装卸费(实际)">
            <ContentTemplate>
                <asp:Label ID="Label6" Text='<%#Convert.ToDecimal(Eval("ActualUnloadingCostWithFactory")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="差方补贴">
            <ContentTemplate>
                <asp:Label ID="txtSubsidy" Text='<%#Convert.ToDecimal(Eval("Subsidy")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="其它收入">
            <ContentTemplate>
                <asp:Label ID="txtOtherRevenue" Text='<%#Convert.ToDecimal(Eval("OtherRevenue")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="营业收入">
            <ContentTemplate>
                <asp:Label ID="txtRevenues" Text='<%#Convert.ToDecimal(Eval("Revenues")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="营业收入(实际)">
            <ContentTemplate>
                <asp:Label ID="Label7" Text='<%#Convert.ToDecimal(Eval("ActualRevenues")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="营业总收入">
            <ContentTemplate>
                <asp:Label ID="txtTotalRevenues" Text='<%#Convert.ToDecimal(Eval("TotalRevenues")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="成本">
            <ContentTemplate>
                <asp:Label ID="txtCost" Text='<%#Convert.ToDecimal(Eval("Cost")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="额外成本">
            <ContentTemplate>
                <asp:Label ID="txtExtraCost" Text='<%#Convert.ToDecimal(Eval("ExtraCost")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="利润">
            <ContentTemplate>
                <asp:Label ID="txtProfit" Text='<%#Convert.ToDecimal(Eval("Profit")).ToString("#,###.00")%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="毛利率">
            <ContentTemplate>
                <asp:Label ID="txtProfitRate" Text='<%#Eval("ProfitRate") +" %"%>' runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="对账否">
            <ContentTemplate>
                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsStatementofAccountCompleted")) && Convert.ToBoolean(Eval("IsStatementofAccountCompleted")) ? "是" : "否"%>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="对账确认日期">
            <ContentTemplate>
                <asp:Label ID="txtConfirmStatementofAccountDate" Width="100px" Text='<%#Eval("ConfirmStatementofAccountDate") != null ? ((DateTime)Eval("ConfirmStatementofAccountDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="应开票日期">
            <ContentTemplate>
                <asp:Label ID="Label1" Width="100px" Text='<%#Eval("DueInvoiceDate") != null ? ((DateTime)Eval("DueInvoiceDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="开票否">
            <ContentTemplate>
                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsInvoiced")) && Convert.ToBoolean(Eval("IsInvoiced")) ? "是" : "否"%>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="开票确认日期">
            <ContentTemplate>
                <asp:Label ID="Label2" Width="100px" Text='<%#Eval("ConfirmInvoiceDate") != null ? ((DateTime)Eval("ConfirmInvoiceDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="应收日期">
            <ContentTemplate>
                <asp:Label ID="Label3" Width="100px" Text='<%#Eval("AccountsReceivableDate") != null ? ((DateTime)Eval("AccountsReceivableDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="收款否">
            <ContentTemplate>
                <%#!MiscUtilities.IsNullOrEmpty(Eval("IsAccountsReceivable")) && Convert.ToBoolean(Eval("IsAccountsReceivable")) ? "是" : "否"%>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="收款确认日期" ColumnSpan="2">
            <ContentTemplate>
                <asp:Label ID="Label4" Width="100px" Text='<%#Eval("ConfirmAccountsReceiptDate") != null ? ((DateTime)Eval("ConfirmAccountsReceiptDate")).ToString("yyyy-MM-dd") : ""%>'
                    runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="未对账备注" ColumnSpan="2">
            <ContentTemplate>
                <asp:Label ID="Label5" Text='<%#Eval("UnConfirmStatementofAccountComments")%>' runat="server"></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
        <NetDon:FormItem HeaderText="异常情况" ColumnSpan="2">
            <ContentTemplate>
                <asp:Label ID="txtExceptions" runat="server" Text='<%#Bind("Exceptions") %>'></asp:Label>
            </ContentTemplate>
        </NetDon:FormItem>
    </Items>
</NetDon:FormPanel>
